/*
 * @Date: 2023-05-25 11:24:56
 * @Description: 路由配置文件
 */

import IconFont from '@/components/IconFont'
import React, { lazy } from 'react'

export const animation = 'slide_from_right'

export const initPage = 'Home'

export const pages = {
  
}

export const tabPages = [
  {
    name: 'Mine',
    render: lazy(() => import('./Home/index')),
    options: {
      title: '首页',
      headerShown: false,
      animation,
      tabBarActiveTintColor: '#000',
      tabBarIcon: ({ focused }) => (
        <IconFont
          size={48}
          name={focused ? 'icon--jia' : 'icon--jia'}
          color={focused ? '#000' : '#000'}
        />
      ),
    },
  },
  {
    name: 'Statistics',
    render: lazy(() => import('./Statistics/index')),
    options: {
      title: '统计',
      headerShown: false,
      animation,
      tabBarActiveTintColor: '#000',
      tabBarIcon: ({ focused }) => (
        <IconFont
          size={48}
          name={focused ? 'icon--jia' : 'icon--jia'}
          color={focused ? '#000' : '#000'}
        />
      ),
    },
  },
  {
    name: 'Mine',
    render: lazy(() => import('./Mine/index')),
    options: {
      title: '我的',
      headerShown: false,
      animation,
      tabBarActiveTintColor: '#000',
      tabBarIcon: ({ focused }) => (
        <IconFont
          size={48}
          name={focused ? 'icon--jia' : 'icon--jia'}
          color={focused ? '#000' : '#000'}
        />
      ),
    },
  }
]
